#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: case05_log_miner.py 
@version:
@time: 2022/05/17 
"""
from TapClientCaseData.CaseGenerateData import CGB
from TapClientCaseData.CaseGenerateData.case_generator.case_data_generate_base import *
from TapDataSourceInfo import db_info_pdk


class CaseGenerateLogMiner(CGB):
    CGB_SOURCE = read_yaml(path_joint(CASE_GENERATE_SOURCE, 'source_logminer.yml'))
    CGB_TARGET = read_yaml(path_joint(CASE_GENERATE_TARGET, 'target_logminer.yml'))
    CGB_STATS = CASE_GENERATE_STATS
    _CGBS_MYSQL = CGB_SOURCE.get('Mysql')
    _CGBS_MONGODB = CGB_SOURCE.get('MongoDB')
    _CGB_POSTGRES = CGB_SOURCE.get('Postgres')
    _CGB_ORACLE = CGB_SOURCE.get('Oracle')
    CGBS_MYSQL = static_add_db_info_name(MYSQL_GENERATE_STATIC, _CGBS_MYSQL)
    CGBS_MONGODB = static_add_db_info_name(MONGODB_GENERATE_STATIC, _CGBS_MONGODB)
    CGBS_POSTGRES = static_add_db_info_name(POSTGRES_GENERATE_STATIC, _CGB_POSTGRES)
    CGBS_ORACLE = static_add_db_info_name(ORACLE_GENERATE_STATIC, _CGB_ORACLE)
    db_info_class = get_classes(db_info_pdk)
    dml_ddl_base = get_classes(base00_common)

    @property
    def cgb_source(self):
        return self._assemble_source()
